using Arrowgene.Buffers;
using Arrowgene.Ddon.Shared.Network;

namespace Arrowgene.Ddon.Shared.Entity.PacketStructure
{
    public class S2CInstanceTreasurePointGetCategoryListRes : IPacketStructure
    {
        public PacketId Id => PacketId.S2C_INSTANCE_TREASURE_POINT_GET_CATEGORY_LIST_RES;

        public S2CInstanceTreasurePointGetCategoryListRes()
        {
        }

        public C2SInstanceTreasurePointGetCategoryListReq ReqData { get; set; }

        public class Serializer : PacketEntitySerializer<S2CInstanceTreasurePointGetCategoryListRes>
        {
            public override void Write(IBuffer buffer, S2CInstanceTreasurePointGetCategoryListRes obj)
            {
                C2SInstanceTreasurePointGetCategoryListReq req = obj.ReqData;
                WriteUInt64(buffer, 0);
                WriteByteArray(buffer, Data1);
            }

            public override S2CInstanceTreasurePointGetCategoryListRes Read(IBuffer buffer)
            {
                S2CInstanceTreasurePointGetCategoryListRes obj = new S2CInstanceTreasurePointGetCategoryListRes();
                return obj;
            }

            private readonly byte[] Data1 = 
            {
                0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0xB, 0x0, 0x1B, 0xE9, 0x81, 0xBA, 0xE8, 0xB7,
                0xA1, 0xE8, 0xA7, 0xA3, 0xE3, 0x81, 0x8D, 0xE3, 0x81, 0x97, 0xE6, 0x89, 0x8B, 0xE3, 0x81, 0x8C,
                0xE3, 0x81, 0x8B, 0xE3, 0x82, 0x8A, 0x5, 0x0, 0x0, 0x0, 0xD, 0x0, 0x1B, 0xE5, 0x8F, 0xA4,
                0xE5, 0xA2, 0x93, 0xE8, 0xA7, 0xA3, 0xE3, 0x81, 0x8D, 0xE3, 0x81, 0x97, 0xE6, 0x89, 0x8B, 0xE3,
                0x81, 0x8C, 0xE3, 0x81, 0x8B, 0xE3, 0x82, 0x8A, 0x5, 0x0, 0x0, 0x0, 0xC, 0x0, 0x1B, 0xE7,
                0xA7, 0x98, 0xE6, 0xB4, 0x9E, 0xE8, 0xA7, 0xA3, 0xE3, 0x81, 0x8D, 0xE3, 0x81, 0x97, 0xE6, 0x89,
                0x8B, 0xE3, 0x81, 0x8C, 0xE3, 0x81, 0x8B, 0xE3, 0x82, 0x8A, 0x5, 0x0, 0x0, 0x0, 0xE, 0x0,
                0x1B, 0xE5, 0xAE, 0x9D, 0xE5, 0xA1, 0x94, 0xE8, 0xA7, 0xA3, 0xE3, 0x81, 0x8D, 0xE3, 0x81, 0x97,
                0xE6, 0x89, 0x8B, 0xE3, 0x81, 0x8C, 0xE3, 0x81, 0x8B, 0xE3, 0x82, 0x8A, 0x3, 0x0, 0x0, 0x0
            };
        }

    }
}
